package com.coderush.admin.sys.exception;

import com.coderush.admin.core.exception.BusinessException;

/**
 * PackageName com.coderush.admin.sys.exception
 *
 * @Author Eason
 * @Version v1.0
 * @ClassName DepartmentException
 * @Date 2025/8/25
 * @Description TODO
 */
public class DepartmentException extends BusinessException {
    public DepartmentException(Integer code, String message) {
        super(code, message);
    }
    public DepartmentException(String message) {
        super(message);
    }
    public static DepartmentException repeatDepartmentName() {
        return new DepartmentException(1010, "部门名称重复");
    }

    public static DepartmentException repeatDeptCode() {
        return new DepartmentException(1011, "部门编码重复");
    }


    public static DepartmentException departmentNotExist() {
        return new DepartmentException(1012, "部门不存在");
    }
}